package com.haohan.stock.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.haohan.stock.dao.StockBaseDAO;
import com.haohan.stock.domain.StockBase;

/**
 * 奖项数据操作类
 * 
 * @author Administrator
 *
 */
@Service
public class StockBaseService {

	@Autowired
	private StockBaseDAO stockDAO;

	public List<StockBase> selectAll(String day, String code) {
		return stockDAO.selectAll(day,code);
	}

	public void save(StockBase stockBase) {
		 stockDAO.saveAsMongo(stockBase);
	}

}
